package com.wyz.serviceImpl;

import com.wyz.entity.Curriculum;
import com.wyz.mapper.CurriculumMapper;
import com.wyz.service.CurriculumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CurriculumServiceImpl implements CurriculumService {
    @Autowired
    CurriculumMapper curriculumMapper;

    @Override
    public Curriculum findById(int id) {
        return curriculumMapper.findById(id);
    }

    @Override
    public List<Curriculum> findAll() {
        return curriculumMapper.findAll();
    }
}
